<template>

  <u-cell-group>
    <u-cell v-for="item in nub" :title="title+(item-0+1)+'号楼'" isLink @click="goToFloat(item)"></u-cell>
  </u-cell-group>

</template>

<script>
  export default {
    data() {
      return {
        title: '',
        nub: Math.floor(Math.random() * 10)
      }
    },

    onLoad(option) {
      this.title = option.title
    },
    methods: {
      goToFloat(item) {
        const title = this.title + (+item + 1) + '号楼'
        console.log(title)
        uni.navigateTo({
          url: `/pkg-house/house-float/house-float?title=${title}`
        })
      }
    }
  }
</script>

<style>

</style>
